package com.xiaominfo.oss.service.impl;

import com.xiaominfo.oss.service.MaterialConfig;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 配置对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MaterialConfigImpl implements MaterialConfig {

    /**
     * 根目录
     */
    private String rootPath;

    /**
     * 执行目录
     */
    private String invokingRoot;

    /**
     * 路径类型
     */
    private String pathStyle;


    @Override
    public String getRoot() {
        return getRootPath();
    }

    @Override
    public String getInvokePath() {
        return getInvokingRoot();
    }

    @Override
    public String getPathType() {
        return getPathStyle();
    }
}
